

import request from '@/router/axios'

const prefix = '/rca/swckstationdailyreportadjust'

export function fetchList(query) {
  return request({
    url: prefix+'/listSwCkStationDailyReport',
    method: 'get',
    params: query
  })
}

export function dataExport(query) {
  return request({
    url: prefix+'/export',
    method: 'get',
    responseType: 'blob',
    params: query
  })
}
/**
 * 单确认
 * @param {*} query 
 * @returns 
 */
export function confirmBatch(query) {
  return request({
    url: prefix+'/confirmBatch',
    method: 'get',
    params: query
  })
}

/**
 * 多确认
 * @param {*} obj 
 */
 export function confirmMany(obj) {
  return request({
    url: prefix+'/confirmMany',
    method: 'get',
    params: obj
  })
}

export function updateBatch(obj,catTicketPayCard,allOneTrafficCard) {
  return request({
    url: prefix+'/updateBatch?catTicketPayCard='+catTicketPayCard+'&allOneTrafficCard='+allOneTrafficCard,
    method: 'put',
    data: obj
  })
}
